<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>相对定位</title>
    <style>
        body{
            font-size: 50px;
        }
        .box1{
            width:200px;
            height:200px;
            background-color: orange;
            
        }
        .box2{
            width:200px;
            height:200px;
            background-color: yellow;
            position:absolute;
            /* position: relative; */
            /* top:px;只有box2向下移动 */
            /* margin-top:100px;box2和box3同时向下移动 */
            /* left:200px; */
        }
        .box3{
            width:200px;
            height:200px;
            background-color:aqua;
        }

    </style>
</head>
<body>
    <div class="box1">1</div>
    <div class="box4">
        <div class="box5">
            
        </div>
    </div>
    <div class="box2">2</div>
    <div class="box3">3</div>

    
</body>
</html>